package com.xinzhi.savingpot.rminfo.controller;

import com.xinzhi.savingpot.rminfo.pojo.RecordinfoVo;
import com.xinzhi.savingpot.rminfo.service.impl.RecordinfoImpl;
import com.xinzhi.savingpot.util.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@Api
@RestController
@RequestMapping("/Recordinfo")
public class RecordinfoController {
    @Autowired
    RecordinfoImpl recordinfo;

    @GetMapping("/getRecordinfo")
    @ApiOperation("店铺分、暂扣分处理")
    public BaseResponse getRecordinfo(@RequestParam("userid") int userid){

        return recordinfo.findRecordinfoById(userid);
    }

}